<table>
  <thead>
    <tr>
      <th width="75">Імя:</th>
      <th width="75">Логін</th>
      <th width="75">Email</th> 
      <th width="75">Телефон</th>
        <th width="100">Деталі</th>
    </tr>  
  </thead>
<tbody>
        <tr>
<?php 
   $us = ORM::factory('user')
             ->where('confirm', '=', NULL)
             ->find_all();
        if($us->count()>0)
        {
            foreach($us as $user)
            {            
                echo '<tr>';
                echo '<td>'.$user->initials.'</td>'; 
                echo  '<td>'.$user->login.'</td>';
                echo  '<td>'.$user->email.'</td>';
                echo  '<td>'.$user->phone.'</td>';
                echo '<td> <form  method="post">    <input type="submit" name="det" value="Деталі"> </td>';
                echo '<input type="hidden" name="idus" value="'.$user->id.'">';
                echo '</form></tr>';
                
            }
        }          
//забагато коду, кажуть
?>          
</tbody>
</table>
